package com.cjq.utils;

/**
 * @author junqiancai@foxmail.com
 * @since 2021/6/13 20:56
 */
public interface Constant {
    String LOGIN_TYPE = "type";
    String ADMIN_LOGIN = "0";
    String USERNAME ="username";
    Integer FORBID_ADMIN = -2;  //禁用
    Integer FORBID_USER = -1;   //禁用
    Integer SP_ADMIN_ROLE = 0;  //超管
    Integer ADMIN_ROLE = 1;     //管理员
    Integer NORMAL_ROLE = 2;    //普通用户
    //判断不可重复提交时放入redis中的key前缀
    String NON_REPEATED_SUBMIT="NRS-";
    //判断不可重复提交时放入redis中的key过期时间，1天
    Integer NRS_EXPIRE=1;
    //用于轮询查看是否利用Mq打卡成功
    String POLLING_PREFIXED="polling:";
    String POLLING_SUCCESS="success";
    String POLLING_FAIL="fail";
    String POLLING_UNWANTED="unwanted";
}
